<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <ul>
        <li v-for="name in arr">{{name}}</li>
    </ul>
    <table border="1px">
        <tr>
            <th>编号</th>
            <th>名称</th>
            <th>价格</th>
            <th>数量</th>
        </tr>
        <tr v-for="(item,i) in itemArr" :key="i">
            <td>{{i+1}}</td>
            <td>{{item.title}}</td>
            <td>{{item.price}}</td>
            <td>{{item.count}}</td>
        </tr>
    </table>
</div>
<script src="../js/vue.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data() {
            return {
                arr: ["张飞","关羽","刘备","赵云","马超"],
                itemArr:[{title:"苹果",price:"5",count:"1000"},
                    {title:"香蕉",price:"10",count:"1000"},
                    {title:"菠萝",price:"20",count:"1000"}]
            }
        },
    })
</script>
</body>
</html>